//
//  HCMineCollectTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/5/31.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCMineCollectTableViewCell.h"

#import "HCMineCollectModel.h"

@implementation HCMineCollectTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.lineView.backgroundColor = YBKRGBCOLOR(241, 241, 241, 1);
    
    self.duihuanBtn.layer.borderWidth = .5f;
    self.duihuanBtn.layer.borderColor = YBKRGBCOLOR(240, 96, 96, 1).CGColor;
    
    self.cancleBtn.layer.borderColor = YBKRGBCOLOR(240, 96, 96, 1).CGColor;
    
    [self.cancleBtn setTitleColor:YBKRGBCOLOR(240, 96, 96, 1) forState:UIControlStateNormal];
    [self.duihuanBtn setTitleColor:YBKRGBCOLOR(240, 96, 96, 1) forState:UIControlStateNormal];
    
    self.cancleBtn.layer.borderWidth = .5f;
    
}

-(void)setModel:(id)model {
    HCMineCollectData *data = model;
    
    [self.IMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.img]]];
//    self.IMG
    self.title.text = [NSString stringWithFormat:@"%@",data.name];
    
    self.desc.text = [NSString stringWithFormat:@"积分：%@",data.price];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
